#include <iostream>

using namespace std;

int main(){
    //二维数组统计考试成绩
    //1、创建二位数组
    int scores[3][3]={
            {100,100,100},
            {90,50,100},
            {60,70,80}
    };
    //2、统计每个人的总和分数
    string names[3]={"张三","李四","王五"};
    for (int i = 0; i < 3; ++i) {
        int sum=0;
        for (int j = 0; j < 3; ++j) {
            sum+= scores[i][j];
            cout<<scores[i][j]<<" ";
        }
        cout<<"\t"<<names[i]<<"的总分为"<<sum<<endl;
    }
    return 0;
}
